package com.atguigu.examsystemserver.service;


import com.atguigu.examsystemserver.entity.ExamRecord;
import com.atguigu.examsystemserver.vo.ExamRankingVO;
import com.atguigu.examsystemserver.vo.StartExamVo;
import com.atguigu.examsystemserver.vo.SubmitAnswerVo;
import com.baomidou.mybatisplus.extension.service.IService;


import java.util.List;

/**
 * 考试记录Service接口
 * 定义考试记录相关的业务方法
 */
public interface ExamRecordService extends IService<ExamRecord> {

    ExamRecord startExamRecord(StartExamVo startExamVo);

    ExamRecord getExamRecordDetailById(Integer id);

    /*提交考试答案*/
    void submitAnswers(Integer examRecordId, List<SubmitAnswerVo> answers);

    void deleteExamRecord(Integer id);

    List<ExamRankingVO> getExamRanking(Integer paperId, Integer limit);
}